package com.atguigu.springcloud.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.atguigu.springcloud.entity.CommonResult;

public class CustomerBlockHandler {
    public static CommonResult handlerException(BlockException exception) {
        return new CommonResult(44454, exception.getClass().getCanonicalName() + "\tglobal服务不可用");
    }

    public static CommonResult handlerException2(BlockException exception) {
        return new CommonResult(44455, exception.getClass().getCanonicalName() + "\tglobal服务不可用2");
    }
}
